<template>
  <div>
    <div class="container">container</div>
  </div>
</template>

<script setup>
import { onBeforeMount, onMounted } from "vue";
onBeforeMount(() => {
  console.log("Dom挂载前", document.querySelector(".container"));
});
onMounted(() => {
  console.log("Dom挂载后", document.querySelector(".container"));
});
</script>

<style lang="scss" scoped></style>
